#include "Logger.h"
#include <iostream>
#pragma comment(lib,"Logger.lib")

int main()
{
	ULogger::Logger log;
	log.Open("./log.log");
	log.PrintToConsole = true;
	log.WriteWithTime = true;
	//log.OnPrintTimeDelegate = [](const char*v)->void
	//{
	//	printf("__0:%s",v);
	//};
	//log.OnPrintLevelDelegate = [](const char*v,ULogger::Level::Logger_Level_Base::LogColor c)->void
	//{
	//	printf("__1:%s", v);
	//};
	//log.OnPrintBodyDelegate = [](const char*v)->void
	//{
	//	printf("__2:%s", v);
	//};
	//log.OnPrintEndDelegate = []()->void
	//{
	//	printf("__4");
	//};
	log.Format(ULogger::LogInfo, "hello test!!!!!");
	log << "wo cao" <<1999999<< log.End;
	log.Close();
	system("pause");
	return 0;
}